Draft
Conversation
Author
|
@mcollina Is this approach feasible? Some points that still need to be clarified for me:
|
Member
|
use the latest version and switch the CLI to esm, there is no real need for the CLI to be CJS. |
mcollina
reviewed
Jan 17, 2024
| '@fastify/url-data': '@fastify/url-data: Decorate the Request object with a method to access raw URL components. See https://github.com/fastify/fastify-url-data for more.', | ||
| '@fastify/view': '@fastify/view: Templates rendering (ejs, pug, handlebars, marko) plugin support for Fastify. See https://github.com/fastify/point-of-view for more.', | ||
| '@fastify/vite': '@fastify/vite: Integration with Vite, allows for serving SPA/MPA/SSR Vite applications. See https://github.com/fastify/fastify-vite for more.', | ||
| '@fastify/websocket': '@fastify/websocket: WebSocket support for Fastify. Built upon ws. See https://github.com/fastify/fastify-websocket for more.' |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First draft for a new
fastify-clicommand calledinstall. This command can be used for any existing Fastify project to browse and install Fastify core plugins. Usage is as follows:fastify install my-project: Launches an interactive CLI powered by Inquirer.js and the selected plugins will be installed in the foldermy-project. A package.json must already exist in this folder.fastify install my-project --search sql: The CLI searches for any core plugin matching the given word and let the user select from the found pluginsfastify help installshows:TODO's:
Checklist
npm run testandnpm run benchmarkand the Code of conduct